<!DOCTYPE html>
<html>
<head>
    <title>编辑客户</title>
    <meta charset="UTF-8">
    <style type="text/css">
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        form {
            width: 60%;
        }
        label {
            display: block;
            margin-top: 10px;
        }
        input[type="text"], input[type="number"] {
            width: 100%;
            padding: 12px 20px;
            margin: 8px 0;
            box-sizing: border-box;
            border: none;
            border-bottom: 2px solid #007bff;
        }
        input[type="submit"] {
            background-color: #007bff;
            color: white;
            padding: 8px 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 20px;
        }
    </style>
</head>
<body>
<div class="header">
    <h1>编辑客户</h1>
</div>
<form action="/edit_customer" method="POST">
    <input type="hidden" name="id" value="{{customer[0]}}">
    <label for="companyName">公司名称：</label>
    <input type="text" id="companyName" name="companyName" value="{{customer[1]}}" required>

    <label for="creditCode">信用代码：</label>
    <input type="text" id="creditCode" name="creditCode" value="{{customer[2]}}">

    <label for="address">地址：</label>
    <input type="text" id="address" name="address" value="{{customer[3]}}">

    <label for="contactPerson">联系人：</label>
    <input type="text" id="contactPerson" name="contactPerson" value="{{customer[4]}}">

    <label for="contactNumber">联系电话：</label>
    <input type="text" id="contactNumber" name="contactNumber" value="{{customer[5]}}">

    <input type="submit" value="提交">
</form>
</body>
</html>
